
////////////////////////////////////////////////////////////////////////////////
//
// Water.java
//
// Copyright © (C) 2010
// 
// Emory Hughes Merryman, III
// emory.merryman@gmail.com
// 
// All Rights Reserved
// 
// This file is part of Interworks.
// 
// Interworks is free software: you can 
// redistribute it and/or modify it under 
// the terms of the GNU General Public 
// License as published by the Free 
// Software Foundation, either version 3 
// of the License, or (at your option) any 
// later version.
// 
// This program is distributed in the hope 
// that it will be useful, but WITHOUT 
// ANY WARRANTY; without even the 
// implied warranty of MERCHANTABILITY 
// or FITNESS FOR A PARTICULAR 
// PURPOSE.  See the GNU General Public 
// License for more details.
//
// You should have received a copy of the 
// GNU General Public License along with 
// this program.  If not, see 
// <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////////////

package
    com . superiorglobalbusiness . cB7zEmeT ;

/*
import java . util . concurrent . atomic . AtomicReference ;
import javax . xml . parsers . DOMBuilderFactory ;
import org . w3c . dom . Node ;
import org . docx4j . XMLUtils ;
import java . util . List ;

import javax . xml . parsers . ParserConfigurationException ;
*/

class Water
{
    /*
    public static void main ( String [ ] args )
    {
	if ( args . length != 2 )
	    {
		System . err . println ( "Usage:  java Main {input} {output}" ) ; 
		System . exit ( 1 ) ;
	    }
	final java . lang . String shapeXPath = "/presentation/slide/shape" ;
	class Worker
	{
	    Node inputNode ( )
	    {
		Node inputNode = null ;
		try
		    {
			node = DocumentBuilderFactory . newInstance ( ) . newDocumentBuilder ( ) . parse ( new File ( args [ 0 ] ) )  ;
		    }
		catch ( ParserConfigurationException cause )
		    {
			assert false : cause ;
		    }
		catch ( IOException cause )
		    {
			System . err . println ( "There is a problem with the input file." ) ;
			System . exit ( 2 ) ;
		    }
		catch ( SAXException cause )
		    {
			System . err . println ( "There is a problem parsing the input file." ) ;
			System . exit ( 3 ) ;
		    }
		return ( inputNode ) ;
	    }

	    void shapes ( Node inputNode )
	    {
		List < Node > shapes = XMLUtils . xpath ( inputNode , shapeXPath ) ;
		for ( Node shape : shapes )
		    {
			shape ( shape ) ;
		    }
	    }

	    void shape ( Node shape )
	    {
	    }
	}
	Worker worker = new Worker ( ) ;
	Node inputNode = worker . inputNode ( ) ;
	worker . shapes ( inputNode ) ;
	List < Node > connections = XMLUtils . xpath ( inputNode , null ) ;
    }
    */
}
